package com.itboye.ihomebank.adapter;

import java.util.ArrayList;
import java.util.List;

import android.R.integer;
import android.content.Context;

import com.itboye.ihomebank.R;
import com.itboye.ihomebank.support.commonadapter.MutiplyCommonAdapter;
import com.itboye.ihomebank.support.commonadapter.ViewHolder;

public class ZhuJiaWuYeAdapter extends MutiplyCommonAdapter<String> {
	List<String> arrayList = new ArrayList<>();
	List<Integer> arrayList2 = new ArrayList<>();

	public ZhuJiaWuYeAdapter(Context context, List<String> datas,
			int... layoutId) {
		super(context, datas, layoutId);
		// TODO Auto-generated constructor stub
		arrayList = datas;
	}
	public ZhuJiaWuYeAdapter(Context context, List<Integer> list, List<String> datas,
			int... layoutId) {
		super(context, datas, layoutId);
		// TODO Auto-generated constructor stub
		arrayList = datas;
		this.arrayList2=list;
	}

	@Override
	public int getItemViewType(int position) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public void getItemPosition(int position) {
		// TODO Auto-generated method stub

	}

	@Override
	public void convert(ViewHolder holder, String t, int type, int position) {
		// TODO Auto-generated method stub
		holder.setText(R.id.text2, arrayList.get(position));
		holder.setImageResource( R.id.item_img,arrayList2.get(position));
	}

}
